import request from '@/utils/request'

// 查询非遗文化延伸列表
export function listOutspread(query) {
  return request({
    url: '/books/outspread/list',
    method: 'get',
    params: query
  })
}

// 查询非遗文化延伸详细
export function getOutspread(outspreadId) {
  return request({
    url: '/books/outspread/' + outspreadId,
    method: 'get'
  })
}

// 新增非遗文化延伸
export function addOutspread(data) {
  return request({
    url: '/books/outspread',
    method: 'post',
    data: data
  })
}

// 修改非遗文化延伸
export function updateOutspread(data) {
  return request({
    url: '/books/outspread',
    method: 'put',
    data: data
  })
}

// 删除非遗文化延伸
export function delOutspread(outspreadId) {
  return request({
    url: '/books/outspread/' + outspreadId,
    method: 'delete'
  })
}
